//
//  BSKImageCollectionViewCell.m
//  MicroMemory
//
//  Created by rimi on 16/7/16.
//  Copyright © 2016年 BlueSky. All rights reserved.
//

#import "BSKImageCollectionViewCell.h"
#import "UIView+SDAutoLayout.h"

@implementation BSKImageCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.imageView = [[UIImageView alloc] init];
        self.selectedImageView = [[UIImageView alloc] init];
        [self addSubview:self.imageView];
        [self addSubview:self.selectedImageView];
        self.imageView.sd_layout.topEqualToView(self)
        .leftEqualToView(self)
        .bottomEqualToView(self)
        .rightEqualToView(self);
        
        self.selectedImageView.sd_layout.leftSpaceToView(self, 5)
        .bottomSpaceToView(self, 5)
        .widthIs(30)
        .heightEqualToWidth();
        self.selectedImageView.image = [UIImage imageNamed:@"selected"];
    }
    return self;
}

@end
